package com.x.provider.api.oss.model.dto.green;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author: liushenyi
 * @date: 2022/08/17/11:08
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AddGreenNotifyRequestDTO {
    private String notifyUrl;
    private String extra;
    private List<ContentDTO> contentList;

    public static class ContentDTO {
        private String contentKey;
        private Integer contentGroupEnum;
        private String mimeType;

        public ContentDTO(){

        }

        public ContentDTO(String contentKey, Integer contentGroupEnum, String mimeType){
            this.contentKey = contentKey;
            this.contentGroupEnum = contentGroupEnum;
            this.mimeType = mimeType;
        }

        public String getContentKey() {
            return contentKey;
        }

        public void setContentKey(String contentKey) {
            this.contentKey = contentKey;
        }

        public Integer getContentGroupEnum() {
            return contentGroupEnum;
        }

        public void setContentGroupEnum(Integer contentGroupEnum) {
            this.contentGroupEnum = contentGroupEnum;
        }

        public String getMimeType() {
            return mimeType;
        }

        public void setMimeType(String mimeType) {
            this.mimeType = mimeType;
        }
    }

}
